package com.yjd.comm.task.service;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.task.model.TaskMessageModel;

/**
 * <b>description</b>：任务消息业务接口<br>
 * <b>time</b>：2015-09-22 17:06:10 <br>
 * <b>author</b>： ready likun_557@163.com
 */
public interface ITaskMessageService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public TaskMessageModel insert(TaskMessageModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(TaskMessageModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param idTaskMessage
	 * @return
	 * @throws Exception
	 */
	public int delete(Long idTaskMessage) throws Exception;

	/**
	 * 更新任务并将其移到日志表中
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int updateAndMoveToLog(TaskMessageModel model) throws Exception;

}
